package com.openbravo.pos.util;

import com.openbravo.format.Formats;

public class RoundUtils
{
  public static double round(double paramDouble)
  {
    double d = Math.pow(10.0D, Formats.getCurrencyDecimals());
    return Math.rint(paramDouble * d) / d;
  }

  public static int compare(double paramDouble1, double paramDouble2)
  {
    return Double.compare(round(paramDouble1), round(paramDouble2));
  }

  public static double getValue(Double paramDouble)
  {
    return paramDouble == null ? 0.0D : paramDouble.doubleValue();
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.util.RoundUtils
 * JD-Core Version:    0.6.0
 */